<titlemenu></titlemenu>
<div class="dj-list">
    <div class="dj-list-body">
        <div party-tree data-selectdzzdm="treeparams.selectdzzdm" data-selectdzzmc="treeparams.selectdzzmc"
             data-defaultselected="treeparams.defaultselected" data-isunfold="treeparams.isunfold"></div>
        <div class="dj-list-content">
            <div class="card">
                <div activate-input activate-select class="header search-header">
                    <div fold-partytree data-isunfold="treeparams.isunfold"></div>
                    <div class="search-param-panel">
                        <div class="search-input">
                            <form class="form-horizontal">
                                <div class="row clearfix form-inline">
                                    <div class="col-lg-2 col-md-2 dj-label">
                                        <label>当前选中组织</label>
                                    </div>
                                    <div class="col-lg-2 col-md-2">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <div class="input-group input-group-search">
                                                    <input name="selectdzzmc" type="text" style="min-width: 90px"
                                                           ng-model="treeparams.selectdzzmc" class="form-control"
                                                           ng-disabled="true"/>
                                                    <span class="input-group-addon"
                                                          ng-click="setisunfold()">选择</span>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-lg-2 col-md-2 dj-label">
                                        <label>请示时间</label>
                                    </div>
                                    <div class="col-lg-2 col-md-2">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <input name="startDate" class="form-control fm-ct-first"
                                                       autocomplete="off"
                                                       autoclose="true"
                                                       data-date-format="yyyy-MM-dd" data-date-type="string"
                                                       ng-model="selectparams.startDate"
                                                       ng-change="search()"
                                                       placeholder="" bs-datepicker/>
                                                <input name="endDate" class="form-control fm-ct-last"
                                                       autocomplete="off"
                                                       autoclose="true"
                                                       data-date-format="yyyy-MM-dd" data-date-type="string"
                                                       ng-model="selectparams.endDate"
                                                       ng-change="search()"
                                                       placeholder="" bs-datepicker/>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-lg-2 col-md-2 dj-label">
                                        <label>请示报告主体</label>
                                    </div>
                                    <div class="col-lg-2 col-md-2">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <input name="zt" class="form-control" type="text"
                                                       ng-keypress="($event.which === 13)?search():0"
                                                       ng-model="selectparams.zt"
                                                       placeholder=""/>

                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="row clearfix form-inline" ng-show="isShow">
                                    <div class="col-lg-2 col-md-2 dj-label">
                                        <label>请示报告对象</label>
                                    </div>
                                    <div class="col-lg-2 col-md-2">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <input name="dx" class="form-control" type="text"
                                                       ng-keypress="($event.which === 13)?search():0"
                                                       ng-model="selectparams.dx"
                                                       placeholder=""/>

                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-lg-2 col-md-2 dj-label">
                                        <label>请示报告事项</label>
                                    </div>
                                    <div class="col-lg-2 col-md-2">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <input name="sx" class="form-control" type="text"
                                                       ng-keypress="($event.which === 13)?search():0"
                                                       ng-model="selectparams.sx"
                                                       placeholder=""/>

                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </form>
                        </div>
                        <div class="search-btn" style="margin-right: 20px;">
                            <div style="min-width: 13em">
                                <span class="moreSpan" ng-click="isShowClick()" style='padding-right:1em;cursor:pointer;'>
                                    {{moreTxt}}<i class="material-icons" style="position: relative;top:7px;">{{isShow ? 'expand_less' : 'expand_more'}}</i></span>
                                <button class="btn btn-default1"
                                        ng-click="search()">查询
                                </button>
                                <button class="btn btn-default1"
                                        ng-click="reset()">重置
                                </button>
                            </div>
                        </div>
                    </div>
                    <div class="search-btn" style="margin-right: 20px;">
                        <div style="float: right">
                            <button class="btn btn-default1"
                                    ng-click="add()">新增
                            </button>
                            <button class="btn btn-default1"
                                    ng-click="delete()">删除
                            </button>
                            <button class="btn btn-default1"
                                    ng-click="export()">导出
                            </button>
                        </div>
                    </div>
                </div>
                <div class="body">
                    <div class="zero-list-table-panel">
                        <div class="zero-source-table-div">
                            <table class="table table-bordered table-striped table-hover js-basic-example dataTable text-nowrap">
                                <thead>
                                <tr>
                                    <th>
                                        <input type="checkbox" id="{{pageId}}_md_checkbox_all"
                                               class="filled-in chk-col-red" ng-checked="isAll==true"
                                               ng-click="selectAll()"/>
                                        <label class="checkbox_lable" style="height: 10px;"
                                               for="{{pageId}}_md_checkbox_all"></label></th>
                                    <th>序号</th>
                                    <th>所属党组织</th>
                                    <th>请示时间</th>
                                    <th>请示报告主体</th>
                                    <th>请示报告对象</th>
                                    <th>请示报告事项</th>
                                    <th>请示报告方式</th>
                                    <th>请示报告反馈情况</th>
                                    <th>创建人</th>
                                    <th>创建时间</th>
                                </tr>
                                </thead>
                                <tbody>
                                <tr ng-repeat="it in dataList">
                                    <td class="text-center">
                                        <input type="checkbox" id="{{pageId}}_md_checkbox_{{$index+1}}"
                                               class="filled-in chk-col-red" ng-checked="it.checked==1"
                                               ng-click="it.checked==1?it.checked=0:it.checked=1"/>
                                        <label class="checkbox_lable" style="top:6px;"
                                               for="{{pageId}}_md_checkbox_{{$index+1}}"></label>
                                    </td>
                                    <td scope="row" class="text-center">
                                        {{selectparams.pagesize*(selectparams.pageindex-1)+$index+1}}
                                    </td>
                                    <td>{{it.dzzmc}}</td>
                                    <td>{{it.qssj | date:'yyyy-MM-dd'}}</td>
                                    <td>{{it.zt}}</td>
                                    <td>{{it.dx}}</td>
                                    <td>{{it.sx}}</td>
                                    <td>{{it.fs}}</td>
                                    <td style="min-width: 150px !important;word-wrap: break-word;word-break: break-all;white-space: normal;">{{it.fkqk}}</td>
                                    <td>{{it.createusername}}</td>
                                    <td>{{it.createtime | date:'yyyy-MM-dd HH:mm:ss'}}</td>
                                </tr>
                                <tr ng-if="dataList.length<=0">
                                    <td colspan="15" style="text-align:center">暂无数据</td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="zero-target-table-div">
                            <table class="table table-bordered table-striped table-hover js-basic-example dataTable text-nowrap">
                                <thead>
                                <tr>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                <tr ng-repeat="it in dataList" zero-table-height>
                                    <td>
                                        <button class="btn td-btn bg-light-green waves-effect"
                                                ng-click="show(it.id)"
                                                title="查看">
                                            查看
                                        </button>
                                        <button
                                                role-permission-code="brandMgList.btnEdit"
                                                class="btn td-btn bg-light-green waves-effect"
                                                ng-click="edit(it.id)"
                                                title="修改">
                                            修改
                                        </button>
                                    </td>
                                </tr>
                                <tr ng-if="pageInfo.ptotal==0">
                                    <td colspan="1" style="text-align:center">无</td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                    <pagination data-pageindex="selectparams.pageindex" data-pagesize="selectparams.pagesize"
                                data-ptotal="pageInfo.ptotal"></pagination>
                </div>
            </div>
        </div>
    </div>
</div>